package com.cljh.mapper;

import com.cljh.bean.Distinct;
import com.cljh.bean.Product;
import com.cljh.controller.page.ProductPageBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DistinctMapper {

    int save(@Param("distinct")Distinct distinct);

    int delete(Integer id);

    int upd(@Param("distinct")Distinct distinct);

    List<Distinct> selectAllByCondition(@Param("begin") Integer begin, @Param("size") Integer size, @Param("distinct") Distinct distinct);

    int selectByCount(@Param("distinct") Distinct distinct);

    int deleteByIds(@Param("ids") List<Integer> ids);

    Distinct selectById(Integer id);

    @Select("select * from mtmall_test.show_product;")
    List<Distinct> selectAll();
}
